package com.ruoyi.map.service.impl;

import com.ruoyi.map.domain.City;
import com.ruoyi.map.domain.District;
import com.ruoyi.map.domain.Province;
import com.ruoyi.map.mapper.SaveMapper;
import com.ruoyi.map.service.SaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Mr-Le
 */
@Service
public class SaveServiceImpl implements SaveService {

    @Autowired
    private SaveMapper saveMapper;

    @Override
    public int insertProvince(Province province) {
        return saveMapper.insertProvince(province);
    }

    @Override
    public int insertCity(City city) {
        return saveMapper.insertCity(city);
    }

    @Override
    public int insertDistrict(District district) {
        return saveMapper.insertDistrict(district);
    }
}
